import request from '@/utils/request'

// 访客黑名单列表
export const getBlackList = (params) => {
  return request({
    method: 'get',
    url: '/visitor/black/query',
    params: params,
  })
}

// 访客黑名单详情
export const blackDetail = (params) => {
  return request({
    method: 'get',
    url: '/visitor/black/get',
    params: params,
  })
}

// 加入/移除黑名单
export const blackUpdate = (data) => {
  return request({
    method: 'post',
    url: '/visitor/black/addOrUpdate',
    params: data,
  })
}
